package com.feiluan.config.mqtt;

/**
 * 摄像头
 *
 * @author yye
 *
 */
public abstract class MQTTCameraPublishConfig {


	protected final String broker = "a12BcKDmxSL.iot-as-mqtt.cn-shanghai.aliyuncs.com";
	protected final int qos = 0;

	protected Boolean hasSSL = false;

	protected Integer port = 1883;
	protected final String userName = "BqzF98lZGgeC422RvsAk&a12BcKDmxSL";
	protected final String password = "A8DF29189A561BEF521D6EA6B3A5B644AB81EB51";
	protected final String TCP = "tcp://";
	protected final String SSL = "ssl://";

	public static final String topic = "/sys/a12BcKDmxSL/BqzF98lZGgeC422RvsAk/thing/event/property/post";

	/**
	 * Custom Configuration
	 *
	 * @param broker
	 * @param port
	 * @param ssl
	 * @param withUserNamePass
	 */
	protected abstract void config(String broker, Integer port, Boolean ssl, Boolean withUserNamePass);

	/**
	 * Default Configuration
	 */
	protected abstract void config();
}
